package com.itheima.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface UserMapper {

    @Update("update bank set money=money+#{money}  where name=#{name}")
    void inAccount(@Param("name") String name, @Param("money") double money);

    @Update("update bank set money=money-#{money}  where name=#{name}")
    void outAccount(@Param("name") String name, @Param("money") double money);
}
